home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 55
/
MOBICLIC 55.ISO
/
DATA
/
ARRIBA
/
SWF_ARRIBA
/
arri01.swf
/
scripts
/
DefineSprite_76
/
frame_15
/
DoAction.as
Wrap
Text File
|
2003-06-02
|
484b
|
27 lines
function getLoop()
{
return null;
}
function getGoal()
{
vGoalX = _parent._xmouse;
vGoalY = _parent._ymouse;
}
function getShoot()
{
var lMC = vGameMC.getNearestPlayer(vGoalX,vGoalY,0);
if(lMC != this)
{
var lAngle = Math.atan2(lMC._y - _Y,lMC._x - _X);
vCos = Math.cos(lAngle);
vSin = Math.sin(lAngle);
return 1;
}
if(vGameMC.vMouseDown)
{
vGameMC.vMouseDown = 0;
return 1;
}
return 0;
}